<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/mock.js"></script>
		<script type="text/javascript">
// 			console.log(Mock.mock({
//   content:"@cparagraph()"
// }));
//  console.log(Mock.mock({
// 	"number|1-99":1
// }))
// console.log(Mock.mock({
// 	id:"@increment"
// }))
// console.log(Mock.mock({
// 	name:"@cname()",
// 	idCard:"@id()",
// 	address:"@city(true)",
// 	img:"@image('300*200','#ff0000','#fff','gif','坤坤')"
// }))

var tpl = {
    'sku|1': [{
		// 'id':'@id()',
        'id|+1': 1,
		// 'name':'@title(2)',
		'name':'@cname',
		'price':'@float(1000, 10000,2,2)',
		"salesVolume|30-1000": 30,
        'datetime': '@datetime()',
		'region': '@region()',
		'province': '@province()',
		"star|1-5": "★",
		"address": "@county(true)", //随机生成地址
		"web": "@web()",
    }]
}
var data = Mock.mock(tpl);
console.log(data)

console.log(JSON.stringify(data /*, null, 4*/ ))
		</script>
	</head>
	<body>
	</body>
</html>